package cn.xiaov.service.impl;

import cn.xiaov.dao.DepartmentDao;
import cn.xiaov.domain.Department;
import cn.xiaov.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
   @Autowired
   DepartmentDao departmentDao;

    @Override
    public List<Department> findAll() {
        return departmentDao.findAll();
    }

    @Override
    public Department findById(Integer id) {
        return departmentDao.findById(id);
    }
}
